<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/9/15
 * Time: 17:24
 */
$arr = ['frank','tom','jack','haaa'];
$i = 0;
while($i<count($arr)){
    echo $arr[$i]."<br>";
    $i++;
}